package cool.tsy.emos.wx.form;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author: hongxuan.wang
 * @date: Created in 2021/11/30 23:36
 * @description: 分页查询消息
 * @mail: 1443424326@qq.com
 */
@Data
@ApiModel
public class SearchMessageByPageForm {

    @NotNull
    @Min(1)
    private Integer page;

    @NotNull
    @Range(min = 1, max = 40)
    private Integer length;
}
